﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Propro
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.MapRoute(
                name: "Default",
                url: "{culture}/{controller}/{action}/{id}",
                defaults: new { culture = "nl", controller = "Home", action = "Index", id = UrlParameter.Optional }
);
            routes.MapRoute(
                name: "Projects",
                url: "{culture}/List/{project}",
                defaults: new { culture = "nl", controller = "Projects", action = "List", name = UrlParameter.Optional }
            );

            routes.MapRoute(
                name: "Log",
                url: "{culture}/Logs",
                defaults: new { culture = "nl", controller = "Log", action = "Index" }
            );

            routes.MapRoute(
                name: "Admin",
                url: "{culture}/Admin",
                defaults: new { culture = "nl", controller = "Admin", action = "Index" }
            );

            routes.MapRoute(
                name: "ResetPassword",
                url: "{culture}/ResetPassword",
                defaults: new { culture = "nl", controller = "Account", action = "ResetPassword" }
            );
            //routes.MapRoute(
            //    name: "Default",
            //    url: "{controller}/{action}/{id}",
            //    defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            //);

            
        }
    }
}